package cc.yugu.yhdw.webserver.persistence.basic;


import cc.yugu.yhdw.common.domain.basic.UpgradePack;
import cc.yugu.yhdw.common.persistence.MasterMapper;

import java.util.List;
/**
 * 安装包升级管理（包括安卓、iOS、终端柜机）
 *
 * @Date:Created in 2018/6/29 11:43
 * @Author:
 * @Modified By: zjn 2018/6/29 11:43
 */
public interface UpgradePackMapper extends MasterMapper {
    /**
    * 根据主键id查询安装包信息
    *
    * @Param: [id]
    * @Return: cc.yugu.yhdw.common.domain.basic.UpgradePack
    * @Author By: zjn 2018/6/29  11:47
    */
    public UpgradePack find(int id);
    /**
    * 按条件查询表bas_upgrade_pack，并返回行数
    *
    * @Param: [search]
    * @Return: int
    * @Author By: zjn 2018/6/29  11:51
    */
    public int findPageCount(UpgradePack search);
    /**
    * 分页查询
    *
    * @Param: [search]
    * @Return: java.util.List<cc.yugu.yhdw.common.domain.basic.UpgradePack>
    * @Author By: zjn 2018/6/29  11:52
    */
    public List<UpgradePack> findPageResult(UpgradePack search);
    /**
    * 根据主键id更新
    *
    * @Param: [entity]
    * @Return: int
    * @Author By: zjn 2018/6/29  11:52
    */
    public int update(UpgradePack entity);
    /**
    * 根据主键id删除
    *
    * @Param: [id]
    * @Return: int
    * @Author By: zjn 2018/6/29  11:52
    */
    public int delete(int id);
}
